import math

class Pointer():
    def __init__(self, x, y):
        self.x = x
        self.y = y


class Circle():
    def __init__(self, cp, radius):
        self.cp = cp
        self.radius = radius

    def area(self, radius):
        s = 3.14 * self.radius * self.radius
        return s

    def length(self, radius):
        c = 2 * 3.14 * self.radius

    def relationship(self, point):
        """
        判断点到圆的距离 点和圆心的距离和半径对比
        """
        distance = math.sqrt((point.x - self.cp.x) ** 2 + (point.y - self.cp.y) ** 2)
        if distance > self.radius:
            print('点在圆外')
        elif distance < self.radius:
            print('点在圆内')
        else:
            print('点在圆上')


p = Pointer(3, 4)
c = Circle(p, 5)
print(c.area(5) )
print(c.length(5) )

p1 = Pointer(10, 10)
c.relationship(p1)

p2 = Pointer(0, 0)
c.relationship(p2)